ceph osd pool delete rbd rbd --yes-i-really-really-mean-it

ceph osd pool create testpool 128 128
ceph osd pool set testpool size 3

for ((i=1; i<9; i++))
do
   img=`rbd ls -p testpool | grep testimg$i`
   if [ $img = "testimg$i" ]; then
       echo "image: testimg$i has exist!"
   else
     rbd create testimg$i --size 409600 -p testpool --image-feature layering
   fi
done

